const utils =  {
    display(el,type){
        el.style.display = type;
    },
    message(content,time = 3000){
        console.log(message_content_dom);

        message_content_dom.innerText = content;
        this.display(message_box_dom,'flex');
        setTimeout(()=>{
            this.display(message_box_dom,'none')
        },time)
    },
    Math:{
        random(min,max) {
            max += (min === 0 ? 1:0);
            return Math.round(Math.random()*(max - (min+1))) + min;
        }
    },
    Date:{
        format(time){
            let date = new Date(time);
            return `${date.getMonth()+1}-${date.getDate()} ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`
        }
    }
};